package com.zhkj.txg.module.member.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.zhkj.txg.R
import com.zhkj.txg.module.member.entity.RebateStatisticsEntity

class MemberIncomeAdapter : BaseQuickAdapter<RebateStatisticsEntity, BaseViewHolder>(R.layout.item_income) {
    override fun convert(helper: BaseViewHolder, item: RebateStatisticsEntity) {
        helper.setText(R.id.tvIncomeType, item.typeString)
            .setText(R.id.tvIncomeCount, item.orderCount.toString())
            .setText(R.id.tvIncomeAnticipated, item.total.toString())
            .setText(R.id.tvIncomeBalance, item.settle.toString())
    }
}